package cn.ctyun.xstore.s3;

import com.amazonaws.services.s3.AmazonS3;

import cn.ctyun.xstore.s3.client.AwsS3ClientBuilder;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class Conf {

    public static final String END_POINT = "http://cqoss.xstore.ctyun.cn";

    public static final String ACCESS_KEY = "";

    public static final String SECRET_KEY = "";

    public static final String DEFAULT_BUCKET = "";


    @Bean
    public AmazonS3 globalClient() {
        return AwsS3ClientBuilder.buildAmazonS3Client(END_POINT, ACCESS_KEY, SECRET_KEY);
    }

}
